//数据集合配置

let { Schema, model } = require("mongoose");
let usersSchema = new Schema({
    account:String,
    password:String,
    name:String,
    phone:String,
    money:{
        type:String,
        default:1000000
    },
    salespersonsId:
    {
        type:Schema.Types.ObjectId,
        ref:"personalModel",
    },
    isDel:{
        type:Boolean,
        default:false
    }
}, { versionKey: false })

module.exports.usersModel = model("usersModel", usersSchema, "users");